Add test coverage for openDatabase#2042
Merged
elenatanasoiu merged 2 commits intomainfrom Feb 7, 2023
Merged
Conversation
openDatabase
967b63b to
7529fad
Compare
f451513 to
deeb0fd
Compare
48a5ed3 to
d439215
Compare
deeb0fd to
81b7482
Compare
d439215 to
e9bdd11
Compare
81b7482 to
0b61c1e
Compare
e9bdd11 to
6ad0104
Compare
78c8e81 to
11770b9
Compare
3 tasks
9092167 to
f7e8a33
Compare
67a2710 to
dede393
Compare
b8e9938 to
0648b53
Compare
dede393 to
17d2ff8
Compare
0648b53 to
235fb83
Compare
We'd like to add test coverage for the openDatabase function (which is public). At the moment, this relies on `resolveDatabaseContents` which is just a standalone function. This means we're unable to mock it using Jest. So let's move it into its own class. This method in turn depends on a `resolveDatabase` function, which we've also moved into the new class. The only usages I could find for there functions were from within the `databases.ts` file.
371f6ec to
b25d30b
Compare
b25d30b to
72f3847
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We didn't have any.
This is a follow up to 6ad0104 to assure ourselves that we're not changing the default behaviour of
openDatabaseby adding a call tocreateSkeletonPacks.Checklist
ready-for-doc-reviewlabel there.